﻿using System.ComponentModel.Composition;
using System.Windows.Controls;

namespace SL4_MVVM_MEF.WcfRIAServicesModule.Views
{
    [PartCreationPolicy(CreationPolicy.NonShared)]
    [Export(typeof(UserControl))]
    [ExportMetadata("ContainerType", "SL4_MVVM_MEF_Navigation.MEFModuleContainer")]
    public partial class SampleWCFRiaView : UserControl
    {
        public SampleWCFRiaView()
        {
            InitializeComponent();
        }

        private void sampleTableDomainDataSource_LoadedData(object sender, System.Windows.Controls.LoadedDataEventArgs e)
        {

            if (e.HasError)
            {
                System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK);
                e.MarkErrorAsHandled();
            }
        }
    }
}
